print single pixel from numpy

38

from PIL import Image
im = Image.open('image.jpg', 'r')
width, height = im.size
pixel_values = list(im.getdata())
pixel_values[width*y+x]

Comments

Submit
0 Comments